<template>
	<!-- 头部使用说明部分-->
	<view class="address_top" @click="add">
		<text>+</text>
		<text>添加新地址</text>
	</view>
	<navigator url="./address_msg">
	<view class="address_content">
		  <view class="message">
		  	<view>
		  		<text>张小五</text>
		  		<text>13945678912</text>
		  	</view>
		  	<text class="address">北京市 北京市昌平区 回龙观大街小区31号</text>
		  </view>
		  <view class="jiantou">
		  	<text>></text>
		  </view>
	</view>
    </navigator>
</template>

<script>
	export default {
		data() {
			return {
				add(){
					uni.chooseAddress({
					  success(res) {
					    console.log(res.userName)
					    console.log(res.postalCode)
					    console.log(res.provinceName)
					    console.log(res.cityName)
					    console.log(res.countyName)
					    console.log(res.detailInfo)
					    console.log(res.nationalCode)
					    console.log(res.telNumber)
					  }
					})
				},
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="less" scoped>
	.address_top{
		display: flex;
		justify-content: center;
		border-bottom: 1px solid #F2F2F2;
		text{
			margin: 10px 0;
			color: #FF0000;
		}
	}
	.address_content{
		display: flex;
		border-bottom: 1px solid #F2F2F2;
		.message{
			display: flex;
			flex: 7;
			flex-direction: column;
			view{
				margin: 10px 0;
				text{
					margin: 0 10px;
				}
			}
			text{
				font-size: 14px;
			}
			.address{
				color: #999999;
				margin: 0 10px;
			}
		}
		.jiantou{
			display: flex;
			flex: 1;
			justify-content: center;
			align-items: center;
		}
	}
</style>
